<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<style type="text/css">
{literal}
*{margin:0; padding:0}
{/literal}
</style>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
{if $data ne ""}
    <script type="text/javascript" src="https://www.google.com/jsapi"></script>
    <script type="text/javascript">
	{literal}
	
      google.load("visualization", "1", {packages:["corechart"]});
      google.setOnLoadCallback(drawChart);
      function drawChart() {
        var data = google.visualization.arrayToDataTable([
            {/literal}{$data}{literal}
        ]);

      var options = {
		  
		  {/literal}
		  
		  {if $m eq "current"}
          title: '(USD)-Earnings For Current Month Of {$month} {$year}',
		  {else}
          title: '(USD)-Earnings For Last Month of {$month} {$year}',		  
		  {/if}
		  {literal}
		  pointSize: 3,
		  backgroundColor: "#f6f6f6"
        };


        var chart = new google.visualization.LineChart(document.getElementById('lineChart'));
        chart.draw(data, options);
      }
	  {/literal}
    </script>
{/if}    
</head>

<body>
<div style="width:648px; height:263px; margin:10px auto; border:1px solid #e0e0e0" id="lineChart" ><br /><br /><br /><br /><br /><br /><center>Earnings Not Available</center></div>
</body>
</html>
